<template>
  <div>
    <van-nav-bar
      title="亮马水晶"
      left-text="返回"
      left-arrow
      @click-left="onClickLeft"
    />
    <div class="opt">
      <!-- <van-icon
        :class="{ active: article.likeFlag }"
        name="like-o"
        @click="toggleLike"
      /> -->

      <van-icon
        @click="toggleCollect"
        name="star-o"
        :class="{ active: article.count }"
      />
    </div>
    <img src="" alt="" />
    <div class="ss">
      <div class="aa">追风</div>
      <span class="ba">近地铁</span>
      <div class="ca">
        <div>
          <p class="la">1000/月</p>
          <p>租金</p>
        </div>
        <div>
          <p class="la">四是</p>
          <p>房型</p>
        </div>
        <div>
          <p class="la">100平米</p>
          <p>面积</p>
        </div>
      </div>
      <div class="d">
        <div>
          <p>装修：</p>
          <p>楼层：</p>
        </div>
        <div>
          <p>朝向：</p>
          <p>类型：</p>
        </div>
      </div>
    </div>
    <div class="xiao">
      <p class="po">小区:</p>
      <img src="" alt="" />
      <p>房屋配套</p>
      <div></div>
    </div>
    <div class="kuang">
      <p>房源概况</p>
      <div class="tou">
        <div>
          <img src="" alt="" />
          <div>
            <p></p>
            <p></p>
          </div>
        </div>
        <div></div>
      </div>
      <div class="cai">
        <p>猜你喜欢</p>
        <div>
          <img src="" alt="" />
          <div>
            <p class="a"></p>
            <p class="b"></p>
            <p class="c"></p>
            <p class="d"></p>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import { jie } from '@/api/luo'
export default {
  data () {
    return {
      article: {}
    }
  },
  methods: {
    onClickLeft () {
      this.$router.go(-1)
    },
    toggleCollect () {}
  },
  async created () {
    const id = this.$route.params.id
    const { body } = await jie(id)
    this.article = body
    // console.log(res)
  }
}
</script>

<style scoped lang="less">
.opt {
  position: fixed;
  bottom: 100px;
  right: 0;
  > .van-icon {
    margin-right: 20px;
    background: #fff;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    box-shadow: 2px 2px 10px #ccc;
    font-size: 18px;
    &.active {
      background: #fec635;
      color: #fff;
    }
  }
}
img {
  width: 100%;
  height: 252px;
}
.ss {
  width: 375px;
  height: 266px;
  .aa {
    margin-top: 10px;
    margin-bottom: 10px;
  }
  .ba {
    margin-bottom: 10px;
  }
  .ca {
    border-top: 1px, solid, red;
    border-bottom: 1px, solid, red;
    display: flex;
    justify-content: space-around;
    .la {
      color: red;
      font-weight: bold;
    }
  }
  .d {
    display: flex;
    margin-top: 10px;
    margin-bottom: 10px;
  }
}
.xiao {
  .po {
    height: 40px;
    line-height: 40px;
  }
  img {
    width: 100%;
    height: 145px;
  }
}
</style>
